﻿<%@ Page Title="主页" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="SouDan._Default" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    <script language="javascript" type="text/javascript">
    $(document).ready(function () {
        $("#query").click(function () {
            Kuaidi100Service.Query($("#com").val(), $("#nu").val(), "2", "1", "desc", onSuccess);
        });

        function onSuccess(result) {
            $("#result").html(result);
        };
    });    
</script>
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <p>
        <asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">
            <Services>
                <asp:ServiceReference Path="~/Service/Kuaidi100Service.svc" />
            </Services>
        </asp:ScriptManagerProxy>
</p>
    <p>
        快递公司：<input id="com" type="text" 
            value="yuantong" /><br />
        快递单号：<input id="nu" type="text" value="6012248162" /><input 
            id="query" type="button" value="查询" /></p>
    <p>
        结果:</p>
    <div id="result">
    </div>
</asp:Content>
